package dxunderground.utilities.sql;

import java.sql.ResultSet;
import java.sql.SQLException;

import dxunderground.TestData.Employee;

public class SampleRowMapper implements RowMapper {
	public Object mapRow(ResultSet rs) throws SQLException {
		Employee e = new Employee();
		e.setId(rs.getFloat("id"));
		e.setName(rs.getString("name"));
		e.setYearsEmployed(rs.getInt("years_employed"));
		return e;
	}
}